@(title:String)(implicit request: RequestHeader,messagesProvider: MessagesProvider,session:Session)

@import helper._
@import views.html.users._


@main(title) {

    @request.flash.get("success").map { key =>
<div>@messagesProvider.messages(key)</div>
    }

<div class="buttons">

    @if(request.session.get("accid").nonEmpty){
    <h1>@request.session.get("uname") profile</h1>
    <a href="@routes.LayuiController.index()">layui</a>
    }else{
    <h1>User's profile as nologin</h1>
    <a href="@routes.UsersController.login()">login</a>
    }
</div>
}
